//
//  UIBarButtonItem+Extensions.swift
//  WeiboSwift
//
//  Created by hfwd on 2017/5/10.
//  Copyright © 2017年 hfwd. All rights reserved.
//

import Foundation
import UIKit

extension UIBarButtonItem{
    /// 创建UIBarButtonItem
    ///
    /// - Parameters:
    ///   - title: title
    ///   - fontSize: fontSize
    ///   - target: target
    ///   - action: action
    convenience init(title : String, fontSize : CGFloat = 16, target:AnyObject?, action:Selector ) {

        let button = UIButton().createHighlightedColorBtn(title : title, fontSize : 16, target:target, action:action)
        
        self.init(customView : button)
    }
}
